<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 * $Log$
 *
 */
set_time_limit(0);
include("../config.inc.php");
include(__Common_Path."/AllWeb.inc.php");

if(empty($_data["BeforeCreateDate"]))$_data["BeforeCreateDate"] = date("Y-m-d");
if(empty($_data["ReportDate0"]))$_data["ReportDate0"] = date("Y-m-d");
if(empty($_data["ReportDate1"]))$_data["ReportDate1"] = date("Y-m-d");
$arrWeb = array();
foreach($_arrWeb as $key => $arrV){
	$arrWeb[] = $arrV[0]."@".$arrV[3];
}
//$arrCon = file("http://secure.luckyball.cc/crontab/getReport.php?GameDate=".$_data["GameDate"]."&AllWeb=".join(",", $arrWeb));

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://192.168.5.21/crontab/getSpUser.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 300);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1); 
curl_setopt($ch, CURLOPT_POSTFIELDS, "AllWeb=".join(",", $arrWeb));
$ret = curl_exec ($ch);
curl_close ($ch);

foreach($_arrWeb as $key => $arrV){
	$ret = str_replace("{".$arrV[0]."}", $arrV[1], $ret);
}
?>
<form action="<?php print $_SERVER["PHP_SELF"];?>" name="ReportFrm">
<input type="button" value="更新" onclick="document.ReportFrm.submit()">
</form>
<?php
print $ret;
?>